import { Component, ElementRef, Input, OnInit } from '@angular/core';
import { CardType } from './models/card-type.enum';


/**
 * Card Box Component (Shared)
 */
@Component({
  selector: 'app-card-box',
  templateUrl: './card-box.component.html',
  styleUrls: ['./card-box.component.less']
})
export class CardBoxComponent implements OnInit {

  @Input() type = CardType.LABEL;
  @Input() width = '100%';
  @Input() height = '100%';
  @Input() title: string;
  @Input() label: string;
  @Input() limit: number;
  @Input() id: string;

  public typeList = CardType;

  /**
   * @param elementRef        該元素的參照
   * @param paginatorProvider 頁碼導覽的Service
   */
  constructor(
    private elementRef: ElementRef
  ) { }

  /**
   * 初始化
   *
   * @method public
   */
  public ngOnInit(): void {
  }

}
